text: Make Emoji insertion work properly
authorMatthias Clasen <mclasen@redhat.com>
Wed, 1 May 2019 05:13:52 +0000 (05:13 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 1 May 2019 05:13:52 +0000 (05:13 +0000)
commite41596d6a1a6fd0124b30f8eefb8c72450e69f5c
treeb66dc4fa29242eb6e324090f241d3b75035b18ac
parent0fa4d54316adf4ff35d1307dab4901c5b854babc
text: Make Emoji insertion work properly

We are now getting focus-out and focus-in events
when the Emoji chooser is shown and hidden, and
this is causing the text to select-on-entry before
inserting the Emoji, which then deletes the selection.

Avoid this by saving and restoring the selection
when presenting the Emoji chooser.
gtk/gtktext.c